﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeBehind="Addpic.aspx.cs" Inherits="lcmyjobs.Web.Admin.adverts.Addpic" %>



<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link href="../../css/AdminFrame.css" rel="stylesheet" type="text/css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server"> 
        <div class="rightBack">
           <div class="rightContentTop">
                <ul>
                    <li>
                        <a href="Add.aspx" >广告增加</a>
                    </li>
                    <li class="cur">
                        <a href="List.aspx" >广告管理</a>
                    </li>
                
                    
                </ul>
           </div>
           <div class="rightContentMiddle">  
    <x:PageManager ID="PageManager1" runat="server" />
    <x:HiddenField ID="hf_aid" runat="server" Text="0"></x:HiddenField>
    
    <br/>
    <x:Grid ID="Grid1" ShowBorder="true" ShowHeader="true" Title="" Width="800px" runat="server"
        DataKeyNames="apid" OnRowCommand="Grid1_RowCommand" AutoScroll="false" AutoHeight="true" OnRowDataBound="Grid1_RowDataBound"  >
        <Columns>
        
            <x:TemplateField Width="50px" HeaderText="编号"> 
                <ItemTemplate>
                    
                    <asp:Label ID="lblaid" runat="server" Text='<%# Eval("apid") %>' ></asp:Label>
                </ItemTemplate>
            </x:TemplateField>
            <x:BoundField  DataField="companyname" DataFormatString="{0}" HeaderText="公司名" Width="120px" />

            <x:ImageField DataImageUrlField="pics" DataImageUrlFormatString="{0}" HeaderText="图片" ImageWidth="300px" Width="300px" />
            <x:BoundField DataField="alink"  DataFormatString="{0}" HeaderText="链接" Width="180px"  />
            
            
            <x:WindowField TextAlign="Center" WindowID="win_addpic" Icon="Pencil" runat="server"
                                ToolTip="编辑" DataIFrameUrlFields="aid,apid" DataIFrameUrlFormatString="addpic_win.aspx?aid={0}&apid={1}"
                                Title="编辑"  IFrameUrl="~/alert.aspx" HeaderText="编辑"  Width="50px"/>
            <x:BoundField DataField="strdisplay" DataFormatString="{0}" HeaderText="状态"  Width="50px" />
            <x:LinkButtonField ID="btn_select" runat="server" CommandName="select" CommandArgument='<%# Bind("apid") %>'  Text="选择"  HeaderText="选择" Width="49px" />
            
            


        </Columns>
    </x:Grid>
    <br/>
    <div style="width:800px;margin:0 auto;">
        <x:Button ID="btn_addpic" runat="server" Text="添加图片" OnClick="dononthing" CssClass="inline" CssStyle="width:60px" EnablePostBack="false"></x:Button>
        <x:Button ID="btn_return" runat="server" Text="&nbsp;&nbsp;&nbsp;&nbsp;返回&nbsp;&nbsp;&nbsp;&nbsp;" CssClass="inline" OnClick="btn_returnclick" CssStyle="width:60px"></x:Button>
    </div>

    <x:Window ID="win_addpic"  runat="server" Popup="false" 
        WindowPosition="Center" IsModal="true" Title="增加广告位图片" EnableMaximize="true"
        EnableResize="true" Target="Self" AutoScroll="false" Width="367px" Height="172px" EnableIFrame="true"  IFrameUrl="about:blank"  >
    </x:Window>
            </div>
        </div>
        <div style="width:800px; margin:0 atuo; visibility:hidden;">
        <x:DropDownList ID="ddllocation" runat="server" BoxConfigPadding="5px" OnSelectedIndexChanged="ddllocation_selected" BoxConfigAlign="Center">
        </x:DropDownList>
    </div>
</asp:Content>
